package com.ztjc.day02_storage;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.ztjc.day02_storage.acivity.ExternalStorage;
import com.ztjc.day02_storage.acivity.InternalStorage;
import com.ztjc.day02_storage.acivity.SharedPerferences;

/**
 * Android中的数据存储
 */
public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void sharedPerferences(View view) {
        startActivity(new Intent(this, SharedPerferences.class));
    }

    public void internalStorage(View view) {
        startActivity(new Intent(this, InternalStorage.class));
    }

    public void externalStorage(View view) {
        startActivity(new Intent(this, ExternalStorage.class));
    }
}
